import React, { Component } from 'react';
import { withRouter } from "react-router-dom"
import { Icon } from 'antd-mobile';
class GoBack extends Component {
    goBack() {
        console.log(this.props);
        // this.props.history.goBack()
        this.props.history.go(-1)
    }
    render() {
        return (
            <>
                <Icon type='left' size='lg' onClick={() => this.goBack()} />
            </>
        );
    }
}

export default withRouter(GoBack);